﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DECOR.BL.BE
{
    public class StockBE
    {
        public StockBE()
        {
            this._codAlmacen = string.Empty;
            this._codCentro = string.Empty;
            this._codLote = string.Empty;
            this._codMaterial = string.Empty;
            this._stockEnTransito = 0m;
            this._stockLibre = 0m;

            this._stockEntregaCliente = 0m;
            this._stockPedidoCliente = 0m;
            //this._fechaStock = new DateTime();
            this.OrgVentas = string.Empty;
            this.CanalDist = string.Empty;
        }

        public string OrgVentas { get; set; }
        public string CanalDist { get; set; }
        public string UMB { get; set; }


        private DateTime _fechaStock;
        public DateTime FechaStock
        {
            get { return this._fechaStock; }
            set { this._fechaStock = value; }
        }

        public string DescDisp
        {
            get { return this.CodCentro + "-" + this.CodAlmacen + "-" + this.CodLote + ": " + this.StockDisponible.ToString("0,0.00"); }
        }

        private string _codMaterial;

        /// <summary>
        /// MATNR
        /// </summary>
        public string CodMaterial
        {
            get { return _codMaterial; }
            set { _codMaterial = value; }
        }

        private string _descMaterial;

        /// <summary>
        /// MATNOM
        /// </summary>
        public string DescMaterial
        {
            get { return _descMaterial; }
            set { _descMaterial = value; }
        }

        private string _codCentro;

        /// <summary>
        /// WERKS
        /// </summary>
        public string CodCentro
        {
            get { return _codCentro; }
            set { _codCentro = value; }
        }

        private string _descCentro;

        /// <summary>
        /// WERNOM
        /// </summary>
        public string DescCentro
        {
            get { return _descCentro; }
            set { _descCentro = value; }
        }

        private string _codAlmacen;

        /// <summary>
        /// LGORT
        /// </summary>
        public string CodAlmacen
        {
            get { return _codAlmacen; }
            set { _codAlmacen = value; }
        }

        private string _descAlmacen;

        /// <summary>
        /// LGONOM
        /// </summary>
        public string DescAlmacen
        {
            get { return _descAlmacen; }
            set { _descAlmacen = value; }
        }

        private string _codLote;

        /// <summary>
        /// CHARG
        /// </summary>
        public string CodLote
        {
            get { return _codLote; }
            set { _codLote = value; }
        }

        private decimal _stockLibre;

        /// <summary>
        /// STOCK_LU : Stock valorado de libre utilización
        /// </summary>
        public decimal StockLibre
        {
            get { return _stockLibre; }
            set { _stockLibre = value; }
        }

        private decimal _stockPedidoCliente;

        /// <summary>
        /// STOCK_PC
        /// </summary>
        public decimal StockPedidoCliente
        {
            get { return _stockPedidoCliente; }
            set { _stockPedidoCliente = value; }
        }

        private decimal _stockEntregaCliente;

        /// <summary>
        /// STOCK_EC
        /// </summary>
        public decimal StockEntregaCliente
        {
            get { return _stockEntregaCliente; }
            set { _stockEntregaCliente = value; }
        }

        private decimal _stockDisponible;

        /// <summary>
        /// STOCK_DI
        /// </summary>
        public decimal StockDisponible
        {
            get { return _stockDisponible; }
            set { _stockDisponible = value; }
        }

        private decimal _stockEnTransito;

        /// <summary>
        /// STOCK_CU
        /// </summary>
        public decimal StockEnTransito
        {
            get { return _stockEnTransito; }
            set { _stockEnTransito = value; }
        }

        private string _jerarquia;

        public string Jerarquia
        {
            get { return _jerarquia; }
            set { _jerarquia = value; }
        }

        //rgutierrez 29.12.2011
        private string _valorCaracteristica;
        public string ValorCaracteristica
        {
            get { return this._valorCaracteristica; }
            set { this._valorCaracteristica = value; }
        }

        private string s_stockDisponible;

        /// <summary>
        /// STOCK_DI
        /// </summary>
        public string sStockDisponible
        {
            get { return s_stockDisponible; }
            set { s_stockDisponible = value; }
        }
    }
}
